-- GENERATED SPELL FOR [Coilskar Sorceress] --


function spell0_19767(pUnit, Event) --@Viscous Shield,Self--
pUnit:FullCastSpellOnTarget(38026,pUnit)
pUnit:RegisterEvent('Sorts_19767', 10000, 1)
end

function spell1_19767(pUnit, Event) --@Water Bolt,n/a--
pUnit:FullCastSpellOnTarget(32011,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19767', 2500, 1)
end

function Sorts_19767(pUnit, Event)
local choix_sorts_19767 = math.random(0, 1)
if choix_sorts_19767 == 0 then
pUnit:RegisterEvent('spell0_19767', 1, 1)
end
if choix_sorts_19767 == 1 then
pUnit:RegisterEvent('spell1_19767', 1, 1)
end
end

function mob19767_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19767', math.random(1500, 3000), 1)
end

function mob19767_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19767_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19767_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19767, 1, 'mob19767_Action')
RegisterUnitEvent(19767, 2, 'mob19767_Leave')
RegisterUnitEvent(19767, 3, 'mob19767_Kill')
RegisterUnitEvent(19767, 4, 'mob19767_Die')
